package com.adams.access.db.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 
 * 
 * File Name : AuditRecord.java
 * 
 * @Description : 审核记录表
 */
@Entity
@Table(name = "T_AUDIT_RECORD")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class AuditRecord extends EntityObject
{

	private static final long serialVersionUID = 1L;

	private String contentId;// 内容编号

	private String title;// 内容标题

	private String typeCode;// 内容类型，业务：business, 栏目：channel, 元数据：metadata

	private Integer step;// 当前审核步骤

	private String idea;// 审核意见

	private String startDate;// 待审开始日期

	private String endDate;// 审核结束日期

	private String auditStatus;// 审核状态：wait, pass, overrule

	private Integer operType;// 1为新建待审核，2为修改待审核，3为删除待审核

	private String viewUrl;// 内容详情查看地址

	private String callbackUrl;// 审核结果回传地址

	private String sourceType;// 资源类型：outer, inner

	private String userId;// 审核人编号

	private String userName;// 审核人名称

	private int send_user_id;// 提交人ID

	@Column(name = "CONTENT_ID", length = 24, nullable = false)
	public String getContentId()
	{
		return contentId;
	}

	public void setContentId(String contentId)
	{
		this.contentId = contentId;
	}

	@Column(name = "TITLE", length = 128, nullable = false)
	public String getTitle()
	{
		return title;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	@Column(name = "TYPE_CODE", length = 24, nullable = false)
	public String getTypeCode()
	{
		return typeCode;
	}

	public void setTypeCode(String typeCode)
	{
		this.typeCode = typeCode;
	}

	@Column(name = "STEP", nullable = false)
	public Integer getStep()
	{
		return step;
	}

	public void setStep(Integer step)
	{
		this.step = step;
	}

	@Column(name = "IDEA", length = 255)
	public String getIdea()
	{
		return idea;
	}

	public void setIdea(String idea)
	{
		this.idea = idea;
	}

	@Column(name = "START_DATE", length = 20)
	public String getStartDate()
	{
		return startDate;
	}

	public void setStartDate(String startDate)
	{
		this.startDate = startDate;
	}

	@Column(name = "END_DATE", length = 20)
	public String getEndDate()
	{
		return endDate;
	}

	public void setEndDate(String endDate)
	{
		this.endDate = endDate;
	}

	@Column(name = "AUDIT_STATUS", length = 24, nullable = false)
	public String getAuditStatus()
	{
		return auditStatus;
	}

	public void setAuditStatus(String auditStatus)
	{
		this.auditStatus = auditStatus;
	}

	@Column(name = "OPER_TYPE", nullable = false)
	public Integer getOperType()
	{
		return operType;
	}

	public void setOperType(Integer operType)
	{
		this.operType = operType;
	}

	@Column(name = "VIEW_URL", length = 208, nullable = false)
	public String getViewUrl()
	{
		return viewUrl;
	}

	public void setViewUrl(String viewUrl)
	{
		this.viewUrl = viewUrl;
	}

	@Column(name = "CALLBACK_URL", length = 208)
	public String getCallbackUrl()
	{
		return callbackUrl;
	}

	public void setCallbackUrl(String callbackUrl)
	{
		this.callbackUrl = callbackUrl;
	}

	@Column(name = "SOURCE_TYPE", length = 24)
	public String getSourceType()
	{
		return sourceType;
	}

	public void setSourceType(String sourceType)
	{
		this.sourceType = sourceType;
	}

	@Column(name = "USER_ID", length = 24, nullable = false)
	public String getUserId()
	{
		return userId;
	}

	public void setUserId(String userId)
	{
		this.userId = userId;
	}

	@Column(name = "USER_NAME", length = 24, nullable = false)
	public String getUserName()
	{
		return userName;
	}

	public void setUserName(String userName)
	{
		this.userName = userName;
	}

	@Column(name = "SEND_USER_ID", length = 11)
	public int getSend_user_id()
	{
		return send_user_id;
	}

	public void setSend_user_id(int send_user_id)
	{
		this.send_user_id = send_user_id;
	}

}
